package com.chungechunyemen.post.po;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Topic entity. @author MyEclipse Persistence Tools
 */

public class Topic  implements java.io.Serializable {


    // Fields    

     private Integer topicId;
     private User userByUserId;
     private Postbar postbar;
     private User userByLastuserId;
     private Integer views;
     private Integer replies;
     private String subject;
     private Integer istop;
     private Integer hot;
     private Integer userIporun;
     private String userIp;
     private Integer lastuserIporun;
     private String lastuserIp;
     private Timestamp lasttime;
     private Integer state;
     private Set replieses = new HashSet(0);
     private Set replieses_1 = new HashSet(0);


    // Constructors

    /** default constructor */
    public Topic() {
    }

	/** minimal constructor */
    public Topic(Integer views, Integer replies, String subject, Integer istop, Integer hot, Integer userIporun, Integer lastuserIporun, Integer state) {
        this.views = views;
        this.replies = replies;
        this.subject = subject;
        this.istop = istop;
        this.hot = hot;
        this.userIporun = userIporun;
        this.lastuserIporun = lastuserIporun;
        this.state = state;
    }
    
    /** full constructor */
    public Topic(User userByUserId, Postbar postbar, User userByLastuserId, Integer views, Integer replies, String subject, Integer istop, Integer hot, Integer userIporun, String userIp, Integer lastuserIporun, String lastuserIp, Timestamp lasttime, Integer state, Set replieses, Set replieses_1) {
        this.userByUserId = userByUserId;
        this.postbar = postbar;
        this.userByLastuserId = userByLastuserId;
        this.views = views;
        this.replies = replies;
        this.subject = subject;
        this.istop = istop;
        this.hot = hot;
        this.userIporun = userIporun;
        this.userIp = userIp;
        this.lastuserIporun = lastuserIporun;
        this.lastuserIp = lastuserIp;
        this.lasttime = lasttime;
        this.state = state;
        this.replieses = replieses;
        this.replieses_1 = replieses_1;
    }

   
    // Property accessors

    public Integer getTopicId() {
        return this.topicId;
    }
    
    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public User getUserByUserId() {
        return this.userByUserId;
    }
    
    public void setUserByUserId(User userByUserId) {
        this.userByUserId = userByUserId;
    }

    public Postbar getPostbar() {
        return this.postbar;
    }
    
    public void setPostbar(Postbar postbar) {
        this.postbar = postbar;
    }

    public User getUserByLastuserId() {
        return this.userByLastuserId;
    }
    
    public void setUserByLastuserId(User userByLastuserId) {
        this.userByLastuserId = userByLastuserId;
    }

    public Integer getViews() {
        return this.views;
    }
    
    public void setViews(Integer views) {
        this.views = views;
    }

    public Integer getReplies() {
        return this.replies;
    }
    
    public void setReplies(Integer replies) {
        this.replies = replies;
    }

    public String getSubject() {
        return this.subject;
    }
    
    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Integer getIstop() {
        return this.istop;
    }
    
    public void setIstop(Integer istop) {
        this.istop = istop;
    }

    public Integer getHot() {
        return this.hot;
    }
    
    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public Integer getUserIporun() {
        return this.userIporun;
    }
    
    public void setUserIporun(Integer userIporun) {
        this.userIporun = userIporun;
    }

    public String getUserIp() {
        return this.userIp;
    }
    
    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public Integer getLastuserIporun() {
        return this.lastuserIporun;
    }
    
    public void setLastuserIporun(Integer lastuserIporun) {
        this.lastuserIporun = lastuserIporun;
    }

    public String getLastuserIp() {
        return this.lastuserIp;
    }
    
    public void setLastuserIp(String lastuserIp) {
        this.lastuserIp = lastuserIp;
    }

    public Timestamp getLasttime() {
        return this.lasttime;
    }
    
    public void setLasttime(Timestamp lasttime) {
        this.lasttime = lasttime;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Set getReplieses() {
        return this.replieses;
    }
    
    public void setReplieses(Set replieses) {
        this.replieses = replieses;
    }

    public Set getReplieses_1() {
        return this.replieses_1;
    }
    
    public void setReplieses_1(Set replieses_1) {
        this.replieses_1 = replieses_1;
    }
   








}